/*
 * TCPListenerSubscriber.hpp
 *
 *  Created on: 06.04.2011
 *      Author: niea
 */

#ifndef TCPLISTENERSUBSCRIBER_HPP_
#define TCPLISTENERSUBSCRIBER_HPP_

#include <string>
#include "../common/Lock.hpp"

namespace efs
{

class TCPListenerSubscriber
{
public:
	TCPListenerSubscriber();
	virtual ~TCPListenerSubscriber();
	void processTCPMessageLock(std::string const& message);
private:
	virtual void processTCPMessage(std::string const& message) = 0;

private:
	pthread_mutex_t m_mutex;
};

}

#endif /* TCPLISTENERSUBSCRIBER_HPP_ */
